import http from '@/plugins/axios/index.js';

//获取auth
export const getAuth = params => {
  return http(`/yjz-oauth/oauth/token?grant_type=client_credentials&scope=all&client_id=web&client_secret=yjz2016`, params, {
    method: 'GET',
    //isAuth: false
  }).then(res => res);
};
// 获取手机验证码接口
export const getPhoneCodeHasUser = params => {
  return http(`/yjz-sso/lawtrain/getPhoneCodeHasUser.do`, params, {
    method: 'GET',
    //isAuth: false
  }).then(res => res);
};


// 手机验证码登陆接口
export const pcLoginByPhoneCode = params => {
  return http(`/yjz-sso/lawtrain/pcLoginByPhoneCode.do`, params, {
    method: 'POST',
    //isAuth: false
  }).then(res => res);
};


// 手机号密码登陆接口
export const pcLogin = params => {
  return http(`/yjz-sso/lawtrain/login_pc_apply.do`, params, {
    method: 'POST',
    // type:'formdata'
    //isAuth: false
  }).then(res => res);
};

